home *** CD-ROM | disk | FTP | other *** search
/ Informática Multimedia 1995 April / Informatica Multimedia CD - Epimundo.iso / DOS / FILE_CHG / TO_FROM.ZIP / TO_FROM.DOC < prev   
Encoding:
Text File  |  1990-01-29  |  4.8 KB  |  106 lines

  1.                          BINARY <--> ASCII UTILITIES
  2.  
  3. Do you ever need to send a binary file to a computer that can only accept 
  4. seven-bit characters?  For example, you may want to upload a spreadsheet file 
  5. to MCI so that it can be downloaded to one or more other locations.  If so, 
  6. here are a pair of utilities that will let you do that.
  7.  
  8. TO-ASC will transform any file (executable, spreadsheet, database, text, etc.) 
  9. from eight-bit characters to seven bit characters.  This is done by taking 
  10. groups of 3 eight-bit characters (24 bits total) and separating them into 4 
  11. six-bit characters.  Each of these is then offset by 63 so that each of the 4 
  12. characters is a printable character (this makes all of the characters seven-
  13. bits in length except for zero which then becomes 63 or an ASCII '?').  These 
  14. 4 characters are then written to a file as 4 eight-bit characters with the 
  15. high order bit always equal to zero.  Thus the file only contains seven-bit 
  16. characters.
  17.  
  18. TO-ASC can convert any size file.  As the conversion takes place, the ASCII 
  19. characters appear on the screen, at 60 characters per line.  The ASCII charac-
  20. ters are also sent to a file but without any line delimiters.
  21.  
  22. A companion program, FROM-ASC, is needed to transform the ASCII file back into 
  23. the original form.  As that transformation proceeds, the ASCII characters are 
  24. again printed to the screen, 60 characters per line, while the output file is 
  25. being written.  The only purpose in displaying the ASCII characters is to 
  26. assure the user that the file conversion process is active.
  27.  
  28. USAGE
  29.  
  30. The command line format for each program is:
  31.  
  32. TO-ASC [<input-file>] [<output-file>]
  33.  
  34. FROM-ASC [<input-file>] [<output-file>]
  35.  
  36. The parameters in brackets ([]) are optional.  If both parameters are omitted, 
  37. the program(s) will query the user for the file descriptors.  If the first 
  38. parameter is present and the second is absent, the program(s) will query for 
  39. an output file descriptor.  The file descriptors may contain a path name as 
  40. well as the file name as long as the total descriptor does not exceed 60 
  41. characters.
  42.  
  43. COMMENTS
  44.  
  45. You may say, "The output file will be larger than the input file."  That is 
  46. true but the size increase is only 33 percent.  This is a small price to pay 
  47. for being able to upload the file to a service that can only accept seven-bit 
  48. characters.
  49.  
  50. Another objection might be, "What if the ultimate destination for the file 
  51. does not have FROM-ASC to convert the file back to its original form?"  This 
  52. objection is taken care of by including in the package the file, FROM-ASC.HEX.  
  53. This is a DEBUG script file of FROM-ASC.EXE.  This file consists of nothing 
  54. but ASCII characters.  It may be sent through an intermediary that can only 
  55. accept ASCII, to your ultimate destination.  Once received at the ultimate 
  56. destination, the user may use the following DEBUG command:
  57.  
  58. DEBUG <FROM-ASC.HEX
  59.  
  60. This will take the script file into DEBUG and create the file FROM-ASC.COM.  
  61. The file created will actually be FROM-ASC.EXE but since DEBUG can't write to 
  62. a file with an EXE extension, the file is named FROM-ASC.COM.  It actually can 
  63. be run with that name because DOS is smart enough to recognize it as an EXE 
  64. file and will load and run it as such.  However, if the end user wants to be 
  65. pure about it, he may rename the file giving it its true EXE extension.
  66.  
  67.  
  68. REGISTRATION
  69.  
  70. The TO - FROM utilities are a product of Castle Oaks Computer Services.  If 
  71. you use the product, you should send in the registration fee of $10.00 to:
  72.  
  73.                         Castle Oaks Computer Services
  74.                             Post Office Box 36082
  75.                          Indianapolis, IN 46236-0082
  76.  
  77. Registered users will receive the latest version of the TO - FROM utilities 
  78. and a detailed description of other products that are available from Castle 
  79. Oaks.
  80.  
  81. Other products available from Castle Oaks are:
  82.  
  83. CRYPT-O-SEARCH (TM) - a program to create word search puzzles.  Includes
  84.                       the option of encrypting the word list.  Registration
  85.                       fee is $10.00.
  86.  
  87. WORDFIND  - - - - - - a system to assist in solving word puzzles such as 
  88.                       crosswords, acrostics, cryptograms, etc. Registration 
  89.                       fee is $15.00.
  90.  
  91. UNAGRAM - - - - - - - a program to unscramble anagrams.  Provided free with 
  92.                       WORDFIND.
  93.  
  94. TRAC & TRAP - - - - - A pseudo computer and its assembler.  Provides an
  95.                       introduction to machine language and assembly
  96.                       language on a simplified computer.  Registration fee
  97.                       is $10.00.
  98.  
  99. Other products are under development.
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.